package dico.finder.impl;

import dico.finder.WordType;

public class VerbWord extends SimpleWord {

	/**
	 * the infinitif of the current word
	 */
	private String infinitive;
	

	/**
	 * create a verb word
	 * 
	 * @param word the word
	 * @param infinitive his infitive
	 */
	public VerbWord(String word, String infinitive) {
		super(word, WordType.VERB);
		this.infinitive = infinitive;
	}
	
	/**
	 * create a verb word
	 * 
	 * @param word the word
	 * @param infinitive his infitive
	 * @param alphabetic_order the alphabetic order
	 */
	public VerbWord(String word, String infinitive, String alphabetic_order) {
		super(word, WordType.VERB, alphabetic_order);
		this.infinitive = infinitive;
	}
	
	/**
	 * get the infinitive  of the verb
	 * 
	 * @return the infinitive
	 */
	public String getInfinitive()
	{
		return this.infinitive;
	}
	
	@Override
	public String toString() {
		return super.toString()+" <== "+this.infinitive;
	}
}
